Marketplace Data
useGetCountOfFilteredOrders
The useGetCountOfFilteredOrders hook returns the number of filtered orders in a collection
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The useGetCountOfFilteredOrders hook returns the number of filtered orders in a collection
| Name | Type | Description |
|---|---|---|
params.chainId | number | The chain ID (e.g., 1 for Ethereum, 137 for Polygon) |
params.collectionAddress | string | The collection contract address |
params.config | SdkConfig | Optional SDK configuration parameters |
params.side | OrderSide | The order side to count (listing or offer) |
params.filter | OrdersFilter | Optional filter for the orders |
params.query | StandardQueryOptions | Optional React Query configuration (from TanStack Query) |
import { useGetCountOfFilteredOrders } from "@0xsequence/marketplace-sdk/react";
const { data: countOfOrders } = useGetCountOfFilteredOrders({
chainId,
collectionAddress,
side: OrderSide.listing,
filter: {
searchText,
properties: filterOptions,
}
});
Was this page helpful?